<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/22
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <c:set var="root" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="${root}/bootstrap/js/jquery-2.1.0.js"></script>
    <link href="${root}/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script src="${root}/bootstrap/js/bootstrap.js"></script>

    <title>产品列表</title>

    <style type="text/css">
        .box{
            width: 100%;
            height: 5%;
        }
    </style>
</head>
<body>
  <div style="background-color: #f5fafe;width: 100%;height: 100%" class="container-fluid">
      <div class="row">

          <c:forEach var="c" items="${page.pageList}" varStatus="status">
              <div class="col-xs-2">
                  <div class="thumbnail">
                      <img src="${root}/${c.image}" alt="">
                      <div class="caption">
                          <div class="box">${c.pname}</div>
                          <p>市场价：${c["market_price"] eq 1}</p>
                          <p>是否热销：
                              <c:if test="${c[\"is_hot\"] eq 1}">是</c:if>
                              <c:if test="${c[\"is_hot\"] ne 1}">否</c:if>
                          </p>
                          <p><a href="#" class="btn btn-primary btn-sm" role="button">修改</a> <a href="#" class="btn btn-default btn-sm" role="button">删除</a></p>
                      </div>
                  </div>
              </div>
          </c:forEach>




      </div>

  </div>
</body>
</html>
